package com.aosan.website.admin.feign

import com.aosan.website.admin.entity.SysUserEntity
import org.springframework.cloud.openfeign.FeignClient
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable

@FeignClient("admin-server",contextId = "user")
interface UserClient {

    @GetMapping("/user/info/{username}")
    fun getUserByUsername(@PathVariable username:String): SysUserEntity?
}